package com.panghl.controller;

import com.panghl.mapper.UserMapper;
import com.panghl.model.entity.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xiaokuixiao
 * date2024/7/25 17:48
 */

@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserMapper userMapper;

    @PostMapping("/insert")
    public void insert(@RequestBody User user) {
        userMapper.insert(user);
    }
}
